package com.pig4cloud.pig.floor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.floor.dto.PropertyFloorDto;
import com.pig4cloud.pig.floor.entity.PropertyFloor;
import com.pig4cloud.pig.floor.vo.PropertyFloorVo;
import com.pig4cloud.pig.propertyroom.entity.PropertyRoom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FloorMapper extends BaseMapper<PropertyFloor> {
	Page<PropertyFloorVo> wrapperPage(@Param("page") Page page, @Param("dto") PropertyFloorDto propertyFloorDto);

	PropertyRoom[] selectRoomByFloorId(@Param("ids") Long[] ids);

	PropertyFloor checkFloorByNumberAndName(PropertyFloor propertyFloor);

	PropertyFloorVo getFloorById(Long floorId);
}
